package com.edu.base.common.paytengjie;

import javax.servlet.http.HttpServletRequest;

import com.edu.base.common.paytengjie.bean.NotifyResponse;
import com.edu.base.common.paytengjie.bean.PayRequest;
import com.edu.base.common.paytengjie.bean.PayResponse;
import com.edu.base.common.paytengjie.bean.RefundRequest;
import com.edu.base.common.paytengjie.bean.RefundResponse;
import com.edu.base.common.paytengjie.bean.TransferRequest;
import com.edu.base.common.paytengjie.bean.TransferResponse;





/**
 * 支付接口，所有支付相关的定义
 * @author ljf
 *
 */
public interface PayInterface {

	/**
	 * 支付
	 */
	public PayResponse toPay(PayRequest request);
	
	/**
	 * 退款
	 */
	public RefundResponse toRefund(RefundRequest request);
	
	/**
	 * 转账
	 */
	public TransferResponse toTransfer(TransferRequest request);
	
	/**
	 * 异步通知处理
	 */
	public NotifyResponse asyncHandle(HttpServletRequest request);
	
	/**
	 * 异步通知接口返回报文-成功
	 */
	public String returnSuccess();
	
	/**
	 * 异步通知接口返回报文-失败
	 */
	public String returnFail();

}
